Added function currying, better docs, new tests, and travis.