Improved init file missing diagnostic.
Changed some serialization to use TMP.

I really don't think the end result will be much better, but it looks
like an interesting learning experience.