Update greeting messages and add header/footer code for better formatting.