packaging improvements

Including:
 - fix broken pristine build
 - gitignore update
 - correct source/format
TODO: better make clean