Updated source code

Added irrelevant comments and removed debugging comments