Added a few documentation things and some other minor edits.