Add bin and normalize end of lines