diff --git a/src/Services/MasonryService.php b/src/Services/MasonryService.php
index 5837453..19ac5a7 100644
--- a/src/Services/MasonryService.php
+++ b/src/Services/MasonryService.php
@@ -1,12 +1,12 @@
 <?php
 
 namespace Drupal\masonry\Services;
+
 use Drupal\Core\Extension\ModuleHandlerInterface;
 
 /**
  * Wrapper methods for Masonry API methods.
  *
- *
  * @ingroup masonry
  */
 class MasonryService {
@@ -22,32 +22,36 @@ class MasonryService {
    * Constructs a MasonryService object.
    *
    * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
-   *   The module handler
-   *
+   *   The module handler.
    */
-  function __construct(ModuleHandlerInterface $module_handler) {
+  public function __construct(ModuleHandlerInterface $module_handler) {
     $this->moduleHandler = $module_handler;
   }
 
   /**
    * Get default Masonry options.
    *
-   * @return
+   * @return array
    *   An associative array of default options for Masonry.
    *   Contains:
-   *   - masonry_column_width: The width of each column (in pixels or as a
+   *   - layoutColumnWidth: The width of each column (in pixels or as a
    *     percentage).
-   *   - masonry_column_width_units: The units to use for the column width ('px'
-   *     or '%').
-   *   - masonry_gutter_width: The spacing between each column (in pixels).
-   *   - masonry_resizable: Automatically rearrange items when the container is
+   *   - layoutColumnWidthUnit: The units to use for the column width ('px' or
+   *     '%').
+   *   - gutterWidth: The spacing between each column (in pixels).
+   *   - isLayoutResizable: Automatically rearrange items when the container is
    *     resized.
-   *   - masonry_animated: Animate item rearrangements.
-   *   - masonry_animation_duration: The duration of animations (in milliseconds).
-   *   - masonry_fit_width: Sets the width of the container to the nearest column.
-   *     Ideal for centering Masonry layouts.
-   *   - masonry_rtl: Display items from right-to-left.
-   *   - masonry_images_first: Load all images first before triggering Masonry.
+   *   - isLayoutAnimated: Animate item rearrangements.
+   *   - layoutAnimationDuration: The duration of animations (in milliseconds).
+   *   - isLayoutFitsWidth: Sets the width of the container to the nearest
+   *     column. Ideal for centering Masonry layouts.
+   *   - isLayoutRtlMode: Display items from right-to-left.
+   *   - isLayoutImagesLoadedFirst: Load all images first before triggering
+   *     Masonry.
+   *   - stampSelector: Specifies which elements are stamped within the layout
+   *     using css selector.
+   *   - isItemsPositionInPercent: Sets item positions in percent values, rather
+   *     than pixel values.
    */
   public function getMasonryDefaultOptions() {
     return array(
@@ -68,13 +72,15 @@ class MasonryService {
   /**
    * Apply Masonry to a container.
    *
-   * @param $container
+   * @param array $form
+   *   The form to which the JS will be attached.
+   * @param string $container
    *   The CSS selector of the container element to apply Masonry to.
-   * @param $options
+   * @param string $item_selector
+   *   The CSS selector of the items within the container.
+   * @param array $options
    *   An associative array of Masonry options.
    *   Contains:
-   *   - masonry_item_selector: The CSS selector of the items within the
-   *     container.
    *   - masonry_column_width: The width of each column (in pixels or as a
    *     percentage).
    *   - masonry_column_width_units: The units to use for the column width ('px'
@@ -83,23 +89,23 @@ class MasonryService {
    *   - masonry_resizable: Automatically rearrange items when the container is
    *     resized.
    *   - masonry_animated: Animate item rearrangements.
-   *   - masonry_animation_duration: The duration of animations (in milliseconds).
-   *   - masonry_fit_width: Sets the width of the container to the nearest column.
+   *   - masonry_animation_duration: The duration of animations in milliseconds.
+   *   - masonry_fit_width: Sets the width of the container to the nearest
+   *     column.
    *     Ideal for centering Masonry layouts.
    *   - masonry_rtl: Display items from right-to-left.
    *   - masonry_images_first: Load all images first before triggering Masonry.
    */
   public function applyMasonryDisplay(&$form, $container, $item_selector, $options = array()) {
 
-    //if (masonry_loaded() && !empty($container)) {
     if (!empty($container)) {
-      // For any options not specified, use default options
+      // For any options not specified, use default options.
       $options += $this->getMasonryDefaultOptions();
       if (!isset($item_selector)) {
         $item_selector = '';
       }
 
-      // Setup Masonry script
+      // Setup Masonry script.
       $masonry = array(
         'masonry' => array(
           $container => array(
@@ -119,7 +125,7 @@ class MasonryService {
         ),
       );
 
-      // Allow other modules to alter the Masonry script
+      // Allow other modules to alter the Masonry script.
       $context = array(
         'container' => $container,
         'item_selector' => $item_selector,
@@ -127,7 +133,7 @@ class MasonryService {
       );
       $this->moduleHandler->alter('masonry_script', $masonry, $context);
 
-      $form['#attached']['library'][] =  'masonry/masonry.layout';
+      $form['#attached']['library'][] = 'masonry/masonry.layout';
       $form['#attached']['drupalSettings'] = $masonry;
     }
   }
@@ -240,10 +246,10 @@ class MasonryService {
   /**
    * Check if the Masonry and imagesLoaded libraries are installed.
    *
-   * @return
+   * @return bool
    *   A boolean indicating the installed status.
    */
-  function isMasonryInstalled() {
+  public function isMasonryInstalled() {
     $masonry = libraries_detect('masonry');
     $imagesloaded = libraries_detect('imagesloaded');
     if ((!empty($masonry['installed'])) && (!empty($imagesloaded['installed']))) {
@@ -254,4 +260,4 @@ class MasonryService {
     }
   }
 
-}
\ No newline at end of file
+}
