added toggle
readding motor and ir functions. doesnt compile