Adds basic file write structure

- File writing structure added. Will likely change the print to include
fprintf commands.