Added some documentation to various methods.