Metadata extractor plugin and some minor fixes

I had no idea this syntax existed, woohoo.