make output directory configurable; remove logger; validate command line arguments