Update main

Refined code with various functions (addPerson, printPerson, list, searchFirstName, searchLastName, searchPerson)