add code length order
code len alphabet size adding
bugfix
fixbugs, add writing of header