fixed all remaining bugs; output equal to conlleval