Pushed out to seprate class.
Added test script.

So I don't have to fire up a shell all the time.