Functional (??? needs testing...) version with plotting. Added readers decorator.