Commented function

Added start of takeSamples function in comment block