Issue71 contact key serialization

Closes #71. Please review.