Issue172 add contact simplify de serialization

Closes #172.
Please merge first PR #171.
I will add comments for the config classes in another PR.