renamed root package
imported old code for checks
renamed possibleDifficulty -> gap
removed superfluous interfaces