Improve how to identify main element in content

Text length, distance from title element, children count are considered.