Clean up ring operations, add some comments