Setup entrypoints

Fixes #85. Needs review.