Cleaned up some stuff.
Made the writing system more robust.
Impossible to have infinite trawling redirect loop now.
Cleaned up stuff.