diff --git a/TimePadApi.class.inc b/TimePadApi.class.inc
index 6a790dd..bf9ddb9 100644
--- a/TimePadApi.class.inc
+++ b/TimePadApi.class.inc
@@ -2,6 +2,7 @@
 
 /**
  * @file
+ * Timepad Module API File.
  */
 
 /**
@@ -9,7 +10,7 @@
  */
 class TimePadApi {
   /**
-   * URL for API
+   * URL for API.
    */
   const URL = 'https://api.timepad.ru/';
 
@@ -19,23 +20,27 @@ class TimePadApi {
   const VERSION = 'v1';
 
   /**
-   * Auth URL for API
+   * Auth URL for API.
    */
   const AUTH_URL = 'https://api.timepad.ru/oauth/authorize';
 
   /**
-   * HTTP methods
+   * HTTP methods.
    */
   const METHOD_GET = 'GET';
   const METHOD_POST = 'POST';
 
   /**
-   * Curl instance
+   * Curl instance.
+   *
+   * @var curl
    */
   protected $curl;
 
   /**
    * Authorize token, for protected API methods.
+   *
+   * @var token
    */
   protected $token;
 
@@ -57,9 +62,12 @@ class TimePadApi {
    * Generate url for request.
    *
    * @param string $path
+   *   Protected function getUrl $path.
    * @param string $base
+   *   Protected function getUrl $base.
    *
    * @return string
+   *   Protected function getUrl string.
    */
   protected function getUrl($path, $base = '') {
     $base = $base ? $base : self::URL;
@@ -70,12 +78,14 @@ class TimePadApi {
    * Get Events List.
    *
    * @param array $params
+   *   Public function eventsGetList array params.
    *
    * @return array
+   *   Public function eventsGetList array.
    *
    * @access public
    */
-  public function eventsGetList($params = array()) {
+  public function eventsGetList(array $params = array()) {
     try {
       $result = $this->entityAction($params, self::METHOD_GET, 'events');
     }
@@ -96,12 +106,14 @@ class TimePadApi {
    * Create Event.
    *
    * @param array $params
+   *   Public function eventsCreate params.
    *
    * @return array
+   *   Public function eventsCreate array.
    *
    * @access public
    */
-  public function eventsCreate($params) {
+  public function eventsCreate(array $params) {
     return $this->entityAction($params, self::METHOD_POST, 'events');
   }
 
@@ -109,13 +121,16 @@ class TimePadApi {
    * Edit Event.
    *
    * @param int $event_id
+   *   Public function eventsEdit event_id.
    * @param array $params
+   *   Public function eventsEdit array params.
    *
    * @return array
+   *   Public function eventsEdit array.
    *
    * @access public
    */
-  public function eventsEdit($event_id, $params) {
+  public function eventsEdit($event_id, array $params) {
     return $this->entityAction($params, self::METHOD_POST, 'events', $event_id);
   }
 
@@ -123,14 +138,18 @@ class TimePadApi {
    * Get Event by it identifier.
    *
    * @param int $event_id
-   *
+   *   Public function eventsGet event_id.
    * @param array $params
+   *   Public function eventsGet array params.
+   *
    * @return array|bool
+   *   Public function eventsGet array bool.
+   *
    * @throws \Exception
    *
    * @access public
    */
-  public function eventsGet($event_id, $params = array()) {
+  public function eventsGet($event_id, array $params = array()) {
     try {
       $result = $this->entityAction($params, self::METHOD_GET, 'events', $event_id);
     }
@@ -150,24 +169,29 @@ class TimePadApi {
   /**
    * Create organization.
    *
-   * @param array $params.
+   * @param array $params
+   *   Public function organizationsCreate array params.
+   *
+   * @return array
+   *   Public function organizationsCreate array.
    *
-   * @return array.
    * @throws Exception.
    */
-  public function organizationsCreate($params) {
+  public function organizationsCreate(array $params) {
     return $this->entityAction($params, self::METHOD_POST, 'organizations');
   }
 
   /**
    * Makes an action (Create / Save/ Delete) with any timepad entity.
    *
-   * @param $params
-   *  Array with params to operate
+   * @param array $params
+   *   Array with params to operate.
+   * @param string $method
+   *   Private function entityAction string method.
    *
    * @throws Exception
    */
-  private function entityAction($params, $method) {
+  private function entityAction(array $params, $method) {
     // Get args to format URL.
     $url_parts = func_get_args();
     // First argument will be "params", we don't need it this way.
@@ -192,6 +216,7 @@ class TimePadApi {
    * Get information about user account.
    *
    * @return array
+   *   Public function accountGet.
    */
   public function accountGet() {
     $params = array(
@@ -213,18 +238,24 @@ class TimePadApi {
    * Execution of the request.
    *
    * @param string $url
+   *   Protected function curlRequest url.
    * @param string $method
+   *   Protected function curlRequest string method.
    * @param string $parameters
+   *   Protected function curlRequest string parameters.
    * @param array $headers
-   * @param integer $timeout
+   *   Protected function curlRequest array headers.
+   * @param int $timeout
+   *   Protected function curlRequest int timeout.
    *
    * @return array
+   *   Protected function curlRequest array.
    *
    * @access protected
    *
    * @throws \Exception
    */
-  protected function curlRequest($url, $method = 'GET', $parameters = array(), $headers = array(), $timeout = 30) {
+  protected function curlRequest($url, $method = 'GET', $parameters = array(), array $headers = array(), $timeout = 30) {
     if ($method == self::METHOD_GET && $parameters) {
       $url .= '?' . http_build_query($parameters);
     }
@@ -299,13 +330,16 @@ class TimePadApi {
    * Create Order.
    *
    * @param int $event_id
+   *   Public function ordersCreate event_id.
    * @param array $params
+   *   Public function ordersCreate array params.
    *
    * @return array
+   *   Public function ordersCreate array.
    *
    * @access public
    */
-  public function ordersCreate($event_id, $params) {
+  public function ordersCreate($event_id, array $params) {
     return $this->entityAction($params, self::METHOD_POST, 'events', $event_id, 'orders');
   }
 
@@ -313,13 +347,16 @@ class TimePadApi {
    * Get Orders List.
    *
    * @param int $event_id
+   *   Public function ordersGetList event_id.
    * @param array $params
+   *   Public function ordersGetList array params.
    *
    * @return array
+   *   Public function ordersGetList array.
    *
    * @access public
    */
-  public function ordersGetList($event_id, $params = array()) {
+  public function ordersGetList($event_id, array $params = array()) {
     try {
       $result = $this->entityAction($params, self::METHOD_GET, 'events', $event_id, 'orders');
     }
@@ -340,14 +377,18 @@ class TimePadApi {
    * Get Order by id.
    *
    * @param int $order_id
+   *   Public function ordersGet order_id.
    * @param int $event_id
+   *   Public function ordersGet event_id.
    * @param array $params
+   *   Public function ordersGet array params.
    *
    * @return array
+   *   Public function ordersGet array.
    *
    * @access public
    */
-  public function ordersGet($order_id, $event_id, $params = array()) {
+  public function ordersGet($order_id, $event_id, array $params = array()) {
     try {
       $result = $this->entityAction($params, self::METHOD_GET, 'events', $event_id, 'orders', $order_id);
     }
@@ -368,13 +409,16 @@ class TimePadApi {
    * Get Webhooks List.
    *
    * @param int $organization_id
+   *   public function webhooksGetList int organization_id.
    * @param array $params
+   *   public function webhooksGetList array params.
    *
    * @return array
+   *   public function webhooksGetList array.
    *
    * @access view_private_organizations
    */
-  public function webhooksGetList($organization_id, $params = array()) {
+  public function webhooksGetList($organization_id, array $params = array()) {
     try {
       $result = $this->entityAction($params, self::METHOD_GET, 'organizations', $organization_id, 'hooks');
     }
@@ -395,13 +439,16 @@ class TimePadApi {
    * Create Webhook.
    *
    * @param int $organization_id
+   *   Public function webhooksCreate int organization_id.
    * @param array $params
+   *   Public function webhooksCreate array params.
    *
    * @return array
+   *   Public function webhooksCreate array.
    *
    * @access edit_organizations_hooks
    */
-  public function webhooksCreate($organization_id, $params) {
+  public function webhooksCreate($organization_id, array $params) {
     return $this->entityAction($params, self::METHOD_POST, 'organizations', $organization_id, 'hooks');
   }
 
@@ -409,14 +456,20 @@ class TimePadApi {
    * Get Webhook by id.
    *
    * @param int $hook_id
+   *   Public function webhooksGet int hook_id.
+   * @param int $organization_id
+   *   Public function webhooksGet int organization_id.
    * @param int $event_id
+   *   Public function webhooksGet int event_id.
    * @param array $params
+   *   Public function webhooksGet array params.
    *
    * @return array
+   *   Public function webhooksGet array.
    *
    * @access view_private_organizations
    */
-  public function webhooksGet($hook_id, $organization_id, $params = array()) {
+  public function webhooksGet($hook_id, $organization_id, array $params = array()) {
     try {
       $result = $this->entityAction($params, self::METHOD_GET, 'organizations', $organization_id, 'hooks', $hook_id);
     }
@@ -437,14 +490,19 @@ class TimePadApi {
    * Edit Webhook.
    *
    * @param int $hook_id
+   *   Public function webhooksEdit int hook_id.
    * @param int $organization_id
+   *   Public function webhooksEdit int organization_id.
    * @param array $params
+   *   Public function webhooksEdit array params.
    *
    * @return array
+   *   Public function webhooksEdit array.
    *
    * @access edit_organizations_hooks
    */
-  public function webhooksEdit($hook_id, $organization_id, $params) {
+  public function webhooksEdit($hook_id, $organization_id, array $params) {
     return $this->entityAction($params, self::METHOD_POST, 'organizations', $organization_id, 'hooks', $hook_id);
   }
+
 }
diff --git a/examples/eventsCreate.php b/examples/eventsCreate.php
index e1051c7..a098f56 100644
--- a/examples/eventsCreate.php
+++ b/examples/eventsCreate.php
@@ -1,6 +1,7 @@
 <?php
+
 /**
- * @file.
+ * @file
  * Example for create event.
  */
 
@@ -8,22 +9,26 @@
 $client = new TimePadApi();
 $params = array(
   'name' => 'string',
-  'starts_at' => '2015-09-26T06:21:14.243Z', // Date in format "Y-m-d\Th:i:sO"
-  'ends_at' => '2015-09-26T06:21:14.243Z', // Date in format "Y-m-d\Th:i:sO"
+// Date in format "Y-m-d\Th:i:sO".
+  'starts_at' => '2015-09-26T06:21:14.243Z',
+// Date in format "Y-m-d\Th:i:sO".
+  'ends_at' => '2015-09-26T06:21:14.243Z',
   'description_short' => 'string',
   'description_html' => 'string',
   'organization' => array(
     'id' => 0,
-    'subdomain' => 'example', // Name of your organization "example.timepad.ru".
+// Name of your organization "example.timepad.ru".
+    'subdomain' => 'example',
   ),
   'ticket_types' => array(
     array(
       'price' => 0,
       'name' => 'string',
       'description' => 'string',
-    )
+    ),
   ),
-  'questions' => array(), // For now it isn't worked.
+// For now it isn't worked.
+  'questions' => array(),
   'categories' => array(
     array('name' => 'ИТ и интернет'),
   ),
@@ -31,11 +36,13 @@ $params = array(
     'city' => 'string',
     'address' => 'string',
   ),
-  'poster_image_url' => 'string', // URL to image.
+// URL to image.
+  'poster_image_url' => 'string',
   'properties' => array(
     'string',
   ),
   'custom' => array(),
-  'access_status' => 'draft', // Can be public, private, draft, link_only.
+// Can be public, private, draft, link_only.
+  'access_status' => 'draft',
 );
 $result = $client->eventsCreate($params);
diff --git a/examples/eventsEdit.php b/examples/eventsEdit.php
index f26b983..ca608c1 100644
--- a/examples/eventsEdit.php
+++ b/examples/eventsEdit.php
@@ -1,11 +1,13 @@
 <?php
+
 /**
- * @file.
+ * @file
  * Example for create event.
  */
 
 // Get all events from TimePad.
-$token = ''; // For edit events token is necessary.
+// For edit events token is necessary.
+$token = '';
 $client = new TimePadApi($token);
 $params = array(
   'name' => 'Test edit',
@@ -13,16 +15,18 @@ $params = array(
   'description_html' => 'Test html description',
   'organization' => array(
     'id' => 0,
-    'subdomain' => 'example', // Name of your organization "example.timepad.ru".
+// Name of your organization "example.timepad.ru".
+    'subdomain' => 'example',
   ),
   'ticket_types' => array(
     array(
       'price' => 0,
       'name' => 'string',
       'description' => 'string',
-    )
+    ),
   ),
-  'questions' => array(), // For now it isn't worked.
+// For now it isn't worked.
+  'questions' => array(),
   'categories' => array(
     array('name' => 'ИТ и интернет'),
   ),
@@ -30,7 +34,8 @@ $params = array(
     'city' => 'Москва',
     'address' => 'string',
   ),
-  'poster_image_url' => 'string', // URL to image.
+// URL to image.
+  'poster_image_url' => 'string',
   'properties' => array(
     'string',
   ),
diff --git a/examples/eventsGetList.php b/examples/eventsGetList.php
index a34ec29..d72c0da 100644
--- a/examples/eventsGetList.php
+++ b/examples/eventsGetList.php
@@ -1,6 +1,7 @@
 <?php
+
 /**
- * @file.
+ * @file
  * Examples to get events list.
  */
 
@@ -31,11 +32,14 @@ $params = array(
     'access_status',
     'registration_data',
   ),
-  'limit' => 20, // By default is 10, max 20.
+// By default is 10, max 20.
+  'limit' => 20,
   'skip' => 1,
-  'sort' => '+name', // Allowed fields: name, starts_at, city, referrer_percent, created_at, id.
+// Allowed fields: name, starts_at, city, referrer_percent, created_at, id.
+  'sort' => '+name',
   'category_ids' => array(
-    452, // Example: IT and internet.
+// Example: IT and internet.
+    452,
   ),
   'category_ids_exclude' => array(),
   'cities' => array(
@@ -50,7 +54,8 @@ $params = array(
     'Drupal',
   ),
   'keywords_exclude' => array(),
-  'access_statuses' => array( // Access only for organization.
+// Access only for organization.
+  'access_statuses' => array(
     'public',
     'private',
     'draft',
@@ -62,16 +67,24 @@ $params = array(
     'hidden',
     'not_moderated',
   ),
-  'price_min' => 0, // Price min in RUR.
-  'price_max' => 1000, // Price min in RUR.
+// Price min in RUR.
+  'price_min' => 0,
+// Price min in RUR.
+  'price_max' => 1000,
   'ad_partner_percent_min' => 0,
   'ad_partner_percent_max' => 15,
-  'ad_partner_profit_min' => 2000, // Profit min in RUR.
-  'ad_partner_profit_max' => '',   // Profit max in RUR.
-  'starts_at_min' => '2015-09-26T15:00:00+0300', // Date in format "Y-m-d\Th:i:sO"
-  'starts_at_max' => '', // Date in format "Y-m-d\Th:i:sO"
-  'created_at_min' => '', // Date in format "Y-m-d\Th:i:sO"
-  'created_at_max' => '', // Date in format "Y-m-d\Th:i:sO"
+// Profit min in RUR.
+  'ad_partner_profit_min' => 2000,
+// Profit max in RUR.
+  'ad_partner_profit_max' => '',
+// Date in format "Y-m-d\Th:i:sO".
+  'starts_at_min' => '2015-09-26T15:00:00+0300',
+// Date in format "Y-m-d\Th:i:sO".
+  'starts_at_max' => '',
+// Date in format "Y-m-d\Th:i:sO".
+  'created_at_min' => '',
+// Date in format "Y-m-d\Th:i:sO".
+  'created_at_max' => '',
 );
 $result = $client->eventsGetList($params);
 print $result['total'];
diff --git a/examples/organizationsCreate.php b/examples/organizationsCreate.php
index 16fd7de..672a3e1 100644
--- a/examples/organizationsCreate.php
+++ b/examples/organizationsCreate.php
@@ -1,16 +1,20 @@
 <?php
+
 /**
- * @file.
+ * @file
  * Example for create organization in timepad.
  */
 
 // Create new client.
 $client = new TimePadApi();
-// Set up params
+// Set up params.
 $params = array(
-  'name' => 'string', // Organization name.
-  'subdomain' => 'string', // Subdomain for .timepad.com.
-  'phone' => '+79555555441', // Contact phone.
+// Organization name.
+  'name' => 'string',
+// Subdomain for .timepad.com.
+  'subdomain' => 'string',
+// Contact phone.
+  'phone' => '+79555555441',
 );
 
 $result = $client->organizationsCreate($params);
diff --git a/timepad.install b/timepad.install
index 174b775..6e10741 100644
--- a/timepad.install
+++ b/timepad.install
@@ -1,4 +1,5 @@
 <?php
+
 /**
  * @file
  * Install, update, and uninstall functions for the TimePad module.
diff --git a/timepad.module b/timepad.module
index 87dcf72..612ff6f 100644
--- a/timepad.module
+++ b/timepad.module
@@ -1,4 +1,5 @@
 <?php
+
 /**
  * @file
  * Basic integration with TimePad.
@@ -70,6 +71,7 @@ function timepad_settings_form($form, &$form_state) {
  * Dashboard of events from TimePad.
  *
  * @return string
+ *   Function timepad_events_dashboard string.
  */
 function timepad_events_dashboard() {
   $items_per_page = 20;
@@ -119,9 +121,11 @@ function timepad_events_dashboard() {
       case t('Title'):
         $field_sort = 'name';
         break;
+
       case t('Date'):
         $field_sort = 'starts_at';
         break;
+
       case t('City'):
         $field_sort = 'city';
         break;
