Cleaned code up, made library leaner.

Removed instances and tracker functions from lite version