now unwrap works with multidimensional arrays
adds unwrapping with user-specified range
adds docs for unwrap function