added documentation
fixed issue where SVG would not be injected sometimes