code cleanup, fixed spelling mistakes