fabs instead of abs so that step detection works correctly now and edges are thinner
comments added and code cleared