cleaning up the package structure, adding interval counting to the midi analysis