Added some in-code comments