a few comments added to code