Added lineintersection.py, tidied up