Saving and loading is now fully working.

Signed-off-by: Lucas Arnström <lucasarnstrom@gmail.com>