Added functionality to load and save

Hopefully some code works. testing it with diegos