Initial commit of library and some examples