Checking keypair files coherence, cleanup and log colors implemented

Change-Id: I68f2e80df64b01f3f6eab31c67c977057619c01e