added extra fun to check protocol, also split main fun into smaller chunks to be more managable
added extra fun to check protocol, also split main fun into smaller chunks to be more managable

miklosduma/dita_link_validator