Also changes some function params, but this is ok. Some simplifications were also able to be made (ie. killing off strcmps with ==, etc).
and s/\bNULL\b/nullptr/g for *.cpp/h/mm files not compiled on my machine