added editorconfig
fixed error when 0 result are returned