Added to gitignore.
Fixed failing tests, removed unused vars.
Ignoring emacs desktop files.