corrected methods, added dealing with parallel and intersected lines