Initial commit of library and example code.