Documented registering events and commands, plus changed println and str to prn. Also added headlines