revisions to error file
moving errors file into R programs