Updated code, tests, and documentation for pre-1.0.