Metadata extractor plugin and some minor fixes

print statement left in