Added stats collection and support to build an executable jar