adds welcome message and implements message types for chat