fixed typos, changed function paramter order
added proper python interface, example in README