added -copyDocument: and -export: commands
remove unused code