fix realloc bug, start adding code for scheduling.  None tested.
start adding code for scheduling.  None tested.
debug statements and better failure for malformed lines
fix print stmt
start adding code for scheduling.  None tested.