Updated globals.h adding some error codes, etc.