improve coding style and documentation.
improve documentation