Corrected erroneous global
Tidied up some comments