 //
 //
 
-import Foundation
-
-// This cocoa-pod will be for used as an Expandable Table View. In this cocoa-pod you
-// will be able to expand and collaspe rows according to what you need. 
-
-
-var cellDescriptors: NSMutableArray!
-/// This is a double array because you have section and all the rows. In this example there is only 1 section
-var visibleRowsInSection = [[Int]]()
-
-public class QExpandableTableView: UIViewController, UITableViewDelegate, UITableViewDataSource
+public class QExpandableTableView: UIViewController, UITableViewDelegate, UITableViewDataSource {
+    public var cellDescriptors: NSMutableArray!
+    public var visibleRowsInSection = [[Int]]()
     
-{
     override public func viewDidLoad() {
         super.viewDidLoad()
-        // Do any additional setup after loading the view, typically from a nib.
     }
-    
     
     override public func viewWillAppear(animated: Bool) {
         super.viewWillAppear(animated)
     }
     
-    
-    // This is for Custom cells but this is a basic example, so we will only expand basic cells.
-    // The normal cell is just the usual cell you will see, and when you exapnd the basic cell, you will 
-    // see the valuePickerCell, which contains the specific value you want to see.
-    
+    /**
+     Assigns tableview delegates and registers all required nibs for cells
+     
+     - parameter tableView: the tableView which will be given from the child class
+     */
     public func configureTableView(tableView: UITableView) {
         tableView.delegate = self
         tableView.dataSource = self

    }
    
    /**
       This will see the visibility of all the rows to true, and thus make it appear on the app
     */
    func getIndicesOfVisibleRows() {
        visibleRowsInSection.removeAll()
        
        for currentSectionCells in cellDescriptors {
            var visibleRows = [Int]()

            }
            else if let secondaryTitle = currentCellDescriptor["secondaryTitle"] {
                print("\(secondaryTitle)")
                cell.detailTextLabel?.text = secondaryTitle as? String
            }
        }
        
