Altered exception handling
changed back to binary files