Added imports optimization while formatting.
Fixed #1. Added default constructor if no matching found.
Added more logging.
Part of #2. Serialize method generation made more native.