Added save and load features (with f5 and f9)
not very tested