code cleanup:
code cleanup
improvements, added config file to args
refactored filesystem, improved regex