Fixed Jacob's error in getEncoderAverage() and fixed some formmating