added check for intersecting polygon
small correction for generating workunits
first version of workbench