Improved documentation and samples