Completed until
Completed createCodeTree
Reduced line count for createCodeTree
Using general names for until function parameters
Using wildcards for weight and chars