Added batch mode. Better command line arg parsing. Better help. Needs testing though.