add EntropyService class; reformated the scala code
add EntropyService class; reformated the scala code