refactored + added some more examples

Signed-off-by: Daniel Fagnan <dnfagnan@gmail.com>