reindent the code, and improve rle_string reading interface
reindent the code