better differentiation between samples
added package name
document
fixed segment count check