documentation update
move hidden settings to globals.php
corrected doc/comments and minor fixes