fix syntax errors, add emacs support to gitignore