diff --git a/registration_role_with_approval.module b/registration_role_with_approval.module
index 8e7a010..b4aeebc 100644
--- a/registration_role_with_approval.module
+++ b/registration_role_with_approval.module
@@ -11,6 +11,9 @@
 
 $roles= array();
 
+/**
+ * Implements hook_{form_id}_form_alter().
+ */
 function registration_role_with_approval_form_user_register_form_alter(&$form, $form_state, $form_id){
   $config = \Drupal::config('registration_role_with_approval.settings');
   $available_roles = $config->get('profile_roles');
@@ -32,6 +35,10 @@ function registration_role_with_approval_form_user_register_form_alter(&$form, $
   }
 }
 
+/**
+ * Assign user roles when registration form is submitted.
+ *
+ */
 function registration_role_with_approval_add_role($form, &$form_state){
   $config = \Drupal::config('registration_role_with_approval.settings');
   $available_roles = $config->get('profile_roles');
@@ -83,4 +90,4 @@ function registration_role_with_approval_mail($key, &$message, $params) {
       $message['body'][] = $mail_body;
       break;
   }
-}
\ No newline at end of file
+}
