added new library functions and examples.