Removed redundant error codes (PARAM). Fixed a few things in file module, and started work on file_write.