Relocated executable logic into `bin` file

As mentioned in #3, the current library is unusable as a dependency. This PR removes the CLI specific logic to a separate `bin` file.

Ideally, there would be a test suite to test against but I did not know what your preferred testing framework was.

Fixes #3.