Cleaned up documentation and coding conventions.