refactored, added outputdirectory setting. updated readme. ready to release 1.4