code generator working a good deal. almost all inst now supported