comments

added comments and other small details