[lib/BreakDancer.pm] new version of generating subroutine added