Begun rewriting comments and documentation.