cleaned up error documentation, cleaned up and documented likely_type_to_string