Add FlashMessage and alert message; reformat PHP comments