Fix fdiff bug. Output of diff was reversed.
Fix linear restriction. Add plots. Fix from __future__ imports.

Fix restriction scaling bug.
Add plots.