Restructured library to expose some friendly functions.
Version bump.