Added density mask and random point generator. Uses inverse mask for point generation