basic functionality working
added output directory option