Here is the best resouce for you:
http://forums.tf2maps.net/showthread.php?t=4674
Boojumsnark's done the best resource possible - tells you all you need to know.
Tip - find the game stlye you want - copy that style into a simple box map do all of you testing/configuration in there and then you can import the coding into your existing/underconstruction map.
Try to change the code to make it your custom one to learn more about that item, not just copying it.