Added isEmpty to agenda interface.
Fixed edge overrun bug and null error.
Added extra utility functions