added ability to specify output directory
update readme