Added commenting to several parts of the project