Examples and documentation

Updated documentation with improved functionallity