fixed trailing space on user programs and added comments