Initial commit of library code.