fix indent and adding semicolons where needed