1. clean up documentation of  gating method 2. fix a bug in parallel gating using cluster #33