Initial commit.
Export the correct functions.
Made the tests version independent.
Changed readme to markdown since npm does not like restructured text.