Some fixes for arrays
updated usage