Ran clang static analyzer
Added license headers and removed grid basehmm.py code that doesn't really fit anymore