Add spin/rotation functionality. Closes #3. Closes #4.