fixed amplifier gain measurement timing, added array control functions to version control