hsem: utf8 fixes
hsem: some documentation
hsem: cleanups