Improve messages and comments

Add explanation for the int64 workaround and some other non-obvious code. Slightly improve status messages.