Update getData.php

added comments to my functions for getData