minor changes, added comments
minor changes