Corrected comment
Improved the lossrecovery considering the orientation of candidate positions and relocalizing when close to boundaries