added potensiometer reading and booleans to make it possible to set it running in one direction: