Clean and format code