Add target to gitignore and a couple of fixes