Ready line detection algorithm. Added Contents in documentation