restructured as a library, bumped to 0.0.3