Read registry done . Cleaned a bit the code.