now checks that a file is being uploaded and is of the correct file extension. Also added comments on the 'upload.php' file