added plotting class Plot2d
some small fixes
2d plot works fine now. Restricted to one line per plot