Validating nextSelector and previousSelector
Code cleaning
Accept more format for the itemName option

Set default legend top margin to 10px
Some style fix