Trie and protocol modules rewritten,
added .edts.