Added documentation and did some cleanup