Third Update

Fixing most of warnings except the one about the insafe use of 'strcpy'.
Using Enum structure for ErrorsCode instade of #define error
Updating secure_strcpy to avoid unwanted things to happen for the
unctrolled input .