Added legend creation.
Fixed SLD styles.