Add documentation for member variables, declare isGlobal at the top

Change-Id: I5592f4c16950abc51e3273f2820da2a6223e49f5