95% done

needs final touches and realloc fix in addPoints()