number of samples, fixed ADS_Start error, added commands, getRegister, and setRegister