Fixes a few bugs, one breaking the preview
Adding various metadata

Ugly, but first make it work, then make it clean.