removed commented out code
added documentation link
added default case and documentation
minor repair to the switch and removal of comments
more documentation links added
added more documentation links and removed redundant code
more documentation links