Add copy command, better error reporting, small fix.