Format and clean code