Added Case 4 as well as rotate right and left functions.  Some debugging
of return cases.