Wrote file io and functions for More C