Implement file saving
Add some TODOs