Clarify length, add samplecount (fix #8)