Changed comments to English and Added console.error() overload