Bug fix and add add gitignore to obj folder