* Corrected bugs when using non default mode
* Added switchmode command to commandprompt plugin
* Unit testing refresh for switchmode