Updates in mainWFG and main

New updates to the code, some changes in the dict format. Now also
changed the mainfile to produce the proper format for wfg(). Also noted
some glitches with int32 and float data types, which should be solved
now.