adding polygon, polyline and some more shape examples

and some bugfixes