create index_length element and adjust output on 'ls' option
If todo that user appending is duplicate, call error and exit.