revise the .gitignore to ignore temp files

such as .img .lst .obj file and so on
first window
enable a counter