Adding new descriptive error messages, and separte them in a general con...

In this change i made a separate constants file and added some useful constants to be used in the code, that will make the code more readable and descriptive.