Let the chatlog autoscroll
Add documentation and remove old debug output
Insert spaces between function names and braces