"added comments and documentation"