Finished fixing motion codes and changed eigen_projection code