File System
Functions
fs_init(overwriteable) - Initializes the filesystem. Creates a file if necessary. Buffer of fixed length is initialized. Sets whether the file can be overwritten or not.
fs_write(data, length) - Writes to the buffer. Checks if it is full and calls fs_dump(buffer) and clears the buffer afterwards
fs_dump(buffer) - Writes the buffer data into a file. If out of storage, either stops writing or begins overwriting from the top of the file.
fs_close() - Closes the file. Called when out of storage or when its been detected that a flight has finished.