fixed some mem leaks
make install implemented