Adds .log and .class to .gitignore

This way all class and log files are not uploaded to git.