updated sample module
fixed a bug in fs.copy