Added Library Functions and Example