4 array transformations are working now, added some argument checks and changed some approaches