Fixed curly braces in cpp files