Export utility functions for outside usage

Added basic tests for existence of the exported functions (need more
tests to cover their functionality).