More improvment for the mertonome ( still not working properly )