client modification

added helper methods for input reading and contact creation