new functions added
updated examples