#50 managed tag mode

Managed tag mode has been implemented and unit tests exist for most of it, and I fixed a few other tests along the way