Added skeleton for gem generator and incorporated features from GLI