Added functions for fetching next/previous nodes
Added debug flag to CFLAGS
Added balancing, rewrote substring, improved memory management.
Removed warning on IEDBuffer_close