Updated

Removed publishing from rotation function and added comments