tons of bugfixes. added root plotting capability.