Write type an properties

Added support for changing write type and returning characteristic
properties
Merge pull request #88 from randdusing/pr/71

Write type an properties