Added more documentation. Also did some cleanup