ignore xcuserdata folder
Cleanup unneeded code and fixed warnings