Added error message on wrong command line arguments, removed need for output directory to have trailing slash