Changed the way warning and errors function on crate level
Added documentation and changed signature of next() and next_call()

Signed-off-by: DanielFath <daniel.fath7@gmail.com>