Changed fnameiter to work with filenames
Added logging and scaling differences.
Fixed some LaTex parsing