Added some useful comments to the code.