Prior to rewriting toggle() method.
Fixed toggle function. Unit tests pass. Need to write a readme before releasing as Beta.