Update: print_line, append_message

added new functions to print lines for system, contacts and self

updated append_message to use these new functions