Added missing @throws tags, updated .gitignore