added and tested map(). updatePID() tested.