Fixed all bugs (that I know of).  Currently handles size inconsistencies and orphans