created argument parser, removed bad code