Commented out all debugging code and fixed a repeated-free bug.  Currently looking for another bug in expansion that causes incorrect memory allocation