Minor tidying

Fixed a bad assert, removed unneeded gitignore patterns