added a main program that provides a simple command line interface