Refactoring write_data the function (): Creating the function write_details (). The behavior of direct writing in output file (csv extension) is now performed by write_details function () as the orientation Terceiro. (Note: all metrics-batch are written, but not organized).

Signed-off-by: Bryan de Holanda <bryan.h.fernandes@hotmail.com>