Fixed imports parser.  Added debug flag to generate