much refactoring, few minor bug fixes (puzzlepoints and HP/MP/SP overflow when editing in QFG1/2), very basic QFG4 support added