added diameter
changed type sampler to get positions
changed main test program