     // MARK: - Class: Item
     
     public class Item {
-        public var title: String = "";
-        public var icon: UIImage?;
-        public var value: AnyObject!;
+        /// The title that will be shown in the menu.
+        public var title: String = ""
+        /// The icon that will be shown in the menu.
+        public var icon: UIImage?
+        /// The object that you will receive in the selectionHandler.
+        public var value: AnyObject!
+        /// These insets will also set titleInsets and contentInsets of the items entry button.
         public var iconInsets: UIEdgeInsets = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0);
         
         init(value:AnyObject, title: String = "", icon: UIImage? = nil) {

import UIKit

public class EliminationMenu: UIView {
    
    public var align = UIControlContentHorizontalAlignment.Left
    public var font = UIFont.systemFontOfSize(UIFont.systemFontSize());
    public var color = UIColor.darkTextColor();
    public var buttonAnimationOffset = CGFloat(50)
    public var showAnimationDuration = NSTimeInterval(0.4)
    public var selectAnimationDuration = NSTimeInterval(0.25)
    public var margin = CGFloat(0)
    public var buttonHeight = CGFloat(44.0)
    
    public var selectionHandler: (selectedIdtem:Item) -> Void = {arg in};
    public var willAnimateHandler: (opening:Bool, animated:Bool) -> Void = {arg in};
    public var didAnimateHandler: (opening:Bool, animated:Bool) -> Void = {arg in};
    
    var buttons = [UIButton]()

    private var _selectedIndex = 0;
    private let tagOffset = 10;
    
    /// The entries of the menu. Setting this will reinitialize the menu.
    public var items: [Item] {
        get {return _items}
        set {
