Started on documentation, changed some comments.