major debug/rewrite
wip readme
added file match function
debug matching