Tidy code to standard format