Made motor class to make stuff less messy. Also probably added other stuff but I forget what