added polygon (well: for now polyline) capabilities
debugged and expanded polygon drawing demo, and tweaks to ignore rules