coded out JSON functions, added tests, fixed sorting records in AddressBook