Different approach
correct calculation of break occurences
val2lin and axis translation
Added support for datetimes