Fixed error in Functions.h with using namespace std; fixed log error; no build errors left, just issues with overflow and type conversion plus vector manipulation