Expose more functions.

Also, embed simple sanity test & example code.