Added docs [CI SKIP]
Changed getErrors to always return array