Update prim.cs

fixed rounding errors, supports adding blocks(untested).  Still has issues when parent is rotated.