Added slicing, squeezing and printout of ndarrays