Format code and some clean.