Added useless gaps
experimental change to useless gaps
Fixed an error with previous uselessgaps, removed nmaster as per Meyithi's patch (http://codepad.org/9tVxrODt)