Added proper command line parsing using Apache Commons CLI library.