refactoring genPercept and genPerceptAndUpdate
Merge remote-tracking branch 'origin/master'
adding missing getter functions back