Added classes main and ClavierListener, some fixes