improves formatting and corrects mistakes in the syntax