corrected previous working version to only do correction for a left-oriented robot - also fixed correcting short range function