Removed extraneous functions
Cleaned up some residual GetState() stuff
Experimenting with realloc... having abort trap errors...