Add line deletion and update tests
Improve reference points