+ add arguments for selecting mode (thread / simple / broken)

+ add command pattern on shearer.run

+ refacto spring config