Adding gitignore
Null pointer bug fixed.