bug fix in core/main and better colors in plot2d.py