Misc. bug fixes. Added ability to read config from a string resource.