Improved toInstance implementation
Simplified startup code
Support for map deserialization
Added note about map deserialization