refactored bin/howitzer and fixed failing tests