Added error checking for the file copy step.
Minor changes.  Fix hlint suggestions.
A very minor change.