improved io:format inspection; added tests covering new functionality;
cleanup