update after switching to flycheck
Switch to flycheck instead of flymake
remove unused functions