added console functionality
code cleanup and renamed getContact to get