Add command line and add option for convert mac (lf only)

Hi,

I added these for my own purposes and thought I would create a pull request to see if your interested. If not, no problem.