Update write file. Finish implementation of basic read / write and test