fix recursive folders, file checks and output directories.
update readme