Added the ability to control length of samples and fixed multiples of the same file appearing in the release file