fixed typo
Added possibility to chose type of output: array, object, string
Added possibility to chose type of output: array, object, string, updated config