Started writing I/O routines for various filetypes