updated diff parsing
updated vars to be global to be more awesome..globals for everyone