Improved analysis and log transport

Many improvements o analysis and log transport code.
Improved analysis and log transport

More improvement