rewrite this script to handle inputs properly; a variety of other small fixes.
rewrite this script to handle inputs properly; a variety of other small fixes.

genegis/genegis,genegis/genegis,genegis/genegis