Added a ring_wait option (waits for ring_ready to return true)

Added a ring_wait option (waits for ring_ready to return true)
Now using module.run()
Fixed raw_stats() function.