Mostly added some documentation.