Add a comman line interface

As the title says, I've added a command line interface. It doesn't have too many options, but it's a start.