General cleanup of the code. CHanged optparse trying to get a 'switch' working between daemon and run-once. Also, changed 'call's for copying files to copyfile().