Added documentation comments
Extracted email format validator to own file
added to_param method to add full doctor/patient name to url
optimized iteration appointments.each to .for_each