deleted constant LEADER_LENGTH; added more flexible check for leader
Merge pull request #9 from jorol/issue8

Issue #8