cleaned up some comments and documentation