fixed file copy bug
added a pre-processor directive for linux
removed debug statements