Implemented make-code-tree. Still needs tests.
Simplified core functions. chars-sum renamed to get-chars.