Added Switch Conditional and Documentation

Optimized engine to support as many codes as possible per situation.