added 'L' and 'e' feature, moved detectlines to spectools

This addes the 'L' feature which prints/shows all detected peaks and this adds the 'e' feature which will add the line closest to the centroided position.   

This also moves the code for detectlines into spectools so it can be more easily changed/updated.