Make into a package and add lineid_plot

This reimplements #2 which was rolled back due to test failure (due to missing __init__.py).