added digest-converter function and some small fixes in makefile