Changed slice_array to return ARRAY ref. Minor fixes