Added functions to contacts.cpp
Merge pull request #2 from Twinmat/cppWork

Added functions to contacts.cpp