errorcodes and message codes updated

todo: integrate codes into program