(ugly) Port of nipa tool and add stuff to .gitignore