Delegated error messages to specific object. Added some repeated data to dependencies.js (to be moved to a general config.js file)