Cleaned vein code a bit

Still working on getting the Flat mine and vein working right.