Refactor into a library with multiple files
Release v0.0.6