Implemented invertPageOrder

Also ignored .DS_Stores

Required some quick fixes to the invertPageOrder tests (variable misnaming)