Fixed the foreach loop. Now you can loop through all elements in a layer.
Ellipse drawing finished, path drawing started. Going to add line path eventually.