changes needed for wwwadmin
address @adamrp comments and removed commented out code
fix indent
Merge pull request #50 from teravest/updates_for_wwwadmin

changes needed for wwwadmin