Added global error module;
Refactored config constants;