added toggle function, propper names
+2 new functions for changing output mode