Added some useful comments and documentation.