Renamed second pathname

So that two functions weren't using the same variable name.
Added commented steps, check for black/white files
Changed current file to current filename

Also cleaned up some comments