Initial commit of linewidth analysis code