Improve controls module dostrings and refactoring