Take mulltiple targets into account
Updated example
Included callback as a param
updated readme fil for documentation, and changed order of params

Callback is now the last parameter.