Added a switch
Added an error type
Check if var exists before creating it
Changed switch configuration
CodeBlocks project files