remove copied code from writing Pipe
correct comparison style
collect 38 occurences of formatting a number into one
extract common subexpressions
create copy constructors
unify reading boolean values
remove copies from Rank and Stop
extract pedal code
simplify filters
collect writing array of numeric references into one method