Added Serialize to ProtoScheme
Added output bugfix
reformatting, warnings