Added code comments

Also added a new file header.