Added commenting, cleaned up a few things, hid some things behind login requirements.