Add comments to Line

Also fixed a bug in noOutput and added a suitable test and some additional things to the integration test.