applying format across the project and fixing all warnings