Improved algorithm to figure out input, GENS support improved (can now load .gmv and view contents)