first working commit. Wrapper almost complete, still lacks docs and tests