implemented file write / read functions: NOW FUCKING CAN SAVE DATA