clean up public API and exported symbols in shared library

Addresses the issues raised in #263.