comments and fixes

All code now have comments. I also add title to settings and profile
page, and changed the URL of the settings page from /index/index to
/settings/index