Format and clean-up source code