clean
add doCopy option&test cases
update README
Enhance reg pattern to support compressed files