Fixed typos in error logging (array functions)
filereader.* -> fileops.*

    - Implemented a file_writer function