fixed EBD Calculation
- added print of EDB via gnuplot