added copy option, tests for it and README documentation; fixed a whitespace in test