Major modifications. Stable and Working Version.

Signed-off-by: Paolo Maresca <plo.maresca@gmail.com>