Added RCswitch
Corrected switching
Added some more documentation