Fixes uninitialized properties. Adds correct package name to generated classes.