fixed Z() in README
added slice helper, removed code after return for Q, fixed indentation
fixed typo in getSegmentCount
fixed indentation in A() examples