formatting in attack.cpp and main.cpp and few changed comments