small refactoring and code update to scala Futures
conversion trait and implicits
commands extracted to separate file
types extracted to separate files