add makefile for deploying
modify statistics calculation

do not consider failed words in rating update