Documentation

Updated documentation and code samples