Made toolkit more usable
modified config to suit main's requirement. added test code for autoSamples in main