initial commit of library code