minor changes and comments to the program