Refactored lib completely. Basically feature complete for managing titles.
Added TODO.