refactoring: functions to get version info
fix compilation warnings
refactoring: move some output functions to hash_print.c