Unify parameter ordering. Remove unused variable.
Rename flagRegister to upper case
Remove myself from explicit copyright headers