Added multiple sections and error messages with the help of Sammy.