fixed linkdef
add check for input file
clean up dictionary generation
add int type to dict generation