Comment and documentation updates.
Added more checks for supported protocol versions.