Add .gitignore and use ASSERT instead of assert.

Both changes from Martin Olsson.
Fixes issue 21 and 22.
4 files changed