git ignore and some error check cahnges