added scala version

updated .gitignore

code reformat