Fix deprecation warning
Add metadata (the module doesn't work yet though)

TODO: tests, code