Fixed mem leaks, added vine