added better example + better documentation