Refactoring charset case
Covering colon-space and comments
Refactoring CSS handling + handle document