finishing auto pointers
cleaning up some other code
Merge pull request #12 from obihann/autopointer

finishing auto pointers