Implemented weighting of ideal intervals
Added a plotting thing