Cleaned out project that had namespace issues.
Initial port from prototype
Functioning library.