Comments

Added a bunch of comments wherever necessary.