Altered version of main_bipartmod_w.c that accepts arguments piped from bash wrapper for easier iterating.