Readme and main class

Took out the examples from the main class file, and put it in the
example file.