Cleanup studying

Fix a swath of code style and clarify the study message. Fixes #5217