added full chart test, caught some errors and fixed them, comments about errors added in chart.py, created early termination rule added code for it