while he waited , he composed an email on his phone to the building maintenance department thanking them for the repairs to his office and wrote several lines praising marshall for his very respectful demeanor .