For future: * fully document code * use some tool for auto generating docs, for example [doxygen](http://www.stack.nl/~dimitri/doxygen/)