Adding gitignore
Null pointer bug fixed.
Merge pull request #2 from jdw/master

gitignore+NPE