Make into a package and and lineid_plot

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