Added an algorithm to create lines and a first idea for controls