fixed makefiles and linking problem. TODO: create makefilew with LTLIB structure.
loop analysis for simple case working -- no output yet