Tests and fixes.
Updated gitignore