minor changes. fixed spelling errors, deleted depreciated commented-out code.