bumped version to 0.1, low-level api gone into separate file, lots of tests and refinements