Some extensions to the wrapper

Just some extensions and minor corrections to the wrapper/bindings, we needed them for a compiler we're working on and it could be useful for others.