Added comments! :D Also fixed a couple bugs.