Remove redundant check from singDec

singDataD called by singDec repeats that check. No need to do it twice.
Remove trailing whitespaces, use newline at EOF
Add .gitignore file

Ignore tags (used by Emacs for quick navigation in the source code)
and Cabal's dist directory.