Added some comments in the standard PHP manner