Interfaces moved out from package widgets.
Big commit.

Added function drawing.
Added zooming on mouse wheel.
Fixed bugs in class Range.