Fixed forge template and added forge generation to gen.sh.