Putting init stuff in a function.
Added command line option for testing.
Updating the README.