Fixes issue #3 by simply removing the $root variable altogether (nothing sets it, so I assume it was abandoned code by someone with PHP notices turned off)