Tested the read function, works okay.
Adding some position-related IO functions.
Moving the enum's to the header.
Add a comment aove io_generate_mode_from_string forward declaration.