Add writepad, fix for_loop condition issue, fix broken hbox -dye