big refactoring; add the licence header in source files; clean many portions of the code; split ChordActor in several actors and traits;