const for input buffer, fix init flag, respect start message failure if it occurs

Okay, here's a new pull request with only the good stuff in it :)