Corrected mistakes
Added option "type" in the options-array