Added new sample snippets for demo and documentation