Added files to gitignore
Changed gitignore by adding .checkstyle to it.
Experiment to change synchronized methods to blocks.