add rotation to sprite objects, add documentation