Code comments

Added proper code comments to the project.