Finished mlstats for communication and fixed code to get everything
compile.