Fixed bugs; removed dependency on image processing toolbox; implemented automatix detection of slice order from slice location and timing fields (works for GE scanner)