Initial checkin of a working library + example