add readme and fix bug in bindings for numpy arrays