Simplified support for multiple dependencies

I think it is better if the boilerplate code is left totally similar from file to file.
Therefore, I moved dependencies declaration in the last line of the boilerplate.
The previous example required specifying the dependencies twice, which is error-prone and does not allow simple copy-pasting of the boilerplate code from one instance to the other.

Also added an example of how to support major libraries without too much effort.

Hope this fits with your guidelines