Add docs and rename function parameters of NewContact()
Rename variable and add doc for test