Fixed api parse errors, added a comment
Moved switch into its own file with a Infomration when called without the needed arguments
Changed switchInfo to include call to os.loadAPI
Moved direction into its own file. Fixed switch
Moved switch in direction into closure so it is created only once (the first time Direction is called)