added optparse to handle CL arguments
added rspec/its to test subject