add input rate checking
clarify docs on gain argument