Adding detailed annotations to help demystify the code used
in this application