Cleaning build + new interface scalahost

I updated the code so that it takes into account the new interface for scalahost
Also cleaned a little and reformat the build