Cleaned and refactored considering data system's new way of generating doctypes list
Google stuff is hidden for now
Added: comments