removed flush commands, changed to lower case, fixed commenting in code regarding flag