Added comments and minor code cleanups
Added comments and minor code cleanups
minor cleanups and comments added