Updated git ignore and small bug fix.