Added some comments to the code.
We should add more documentation later, too.