vector init error found and corrected, some debug information added. however still NANs in outputfiles after learning process