Started work on region file format(Oh god, this will be painfull), and fixed some stuff