added genereAccordAbc to maingauche.java

and cleaned some of the code (mostly formatting)