warning fixes

and gitingore added