Added command line input, fixed spelling.