Upgrade sampling to a neater comprehension
Complete functionality of sampling procedure