Fix bug of st_size=0 and add arguments parser