added code examples to get properties of a peripheral