Documenting and cleaning up various things.

Started cleaning up various things as well as adding documentation. If any of the notes or documentation is wrong, please tell me so.