Implement file saving/loading functionality(incomplete)