added comments and code book