Updated readme, and updated main so you don't need to run the test program on the commandline.