Issue172 add contact simplify de serialization

Closes #172.
Please merge first PR #171.
Okay