1. Fixed a bug in argparsing.R that led the last argument to be sometimes ignored
2. improved documentation in getcounts
3. fixed a bug in segment in reorderModels