Rename class data members and accessor functions as per coding guideline...

...s

Fix a possible memory leak in FlowKState