updating the legend.php layout and the examples
updating some property default values
updating the _scripts() method to fix the js variables initialisation
updating the name of the legend layout file
Updating the example code