Incorporate af's copy script
update rakefile
add reset rake task