Added documentation for  GetNextOpcode()

Renamed variables.
Added variables.