Added various copy flags to handle directory copying.
Adding debug messages back in.