fix metadata injector
change some classes to new-style
correct print info
Merge pull request #721 from LipuFei/fix_metadata

Fix metadata injector