fixed spelling, added comments