Fixed Mem leaks
Once again, removed head and such from git