- fixed comment about length that output length is in chars