Improve speed, accuracy and user experience

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Fixing indentation and declaring local variables.

Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
Improving README file.

Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>