Preliminary character saving works...

but it still needs debugging.