Integrate message class into makefile and add message code.