better docs and simple example, also added the target object hooks