Work in progress! Implementing save/load-functions. Should be okay to debug anyway. (except those functions)