fixed problems with undefined slope for vertical line; changed rssi to include scaling factor.