added preliminary QFG3 support (still trying to decypher the format for QFG3), and minor tweaks and bug fixes.