added copy functionality in addition to the move functionality.
added command line argument handling with getopt() and -m switch for moving files