fixed some bugs, finalized rotary encoder connection, working as expected