Cleaned up genrated code headers and renamed write and load to toJson and fromJson.
Fixed an issue with parser parsing comments in the middle of model definitions.