Improved documentation and updated examples