change makefile again
refactor rotation matrix computation