Adds tests, Rakefile, and ability to quit at any time