Refactoring TOTAL. API Simplified

Signed-off-by: SrMouraSilva <mateus.moura@hotmail.com>