update codegenerator to correctly get types of void and primitive arrays
removed debugging message
fixed command line options