adding wall, floor and ceiling detection.