jonny- reading from different functions in the c++ file
Merged rotation into the rest.