refined circularShift
implemented caseConverter
refactor from linear into reusable functions
inserted comments