Correct output file director
Update examples
The data array type is now customizable