Fixed issues in the DM bindings docs and mismatch with the DM interface. Also fixed minor bindings bugs.