modifed some functions for clarity
Merge branch 'LinuxAssign3ChatProgram' of https://github.com/razc411/ridingthecode into LinuxAssign3ChatProgram