fixed crash causing bug
added functionality to gen generation button
fixed segments not being loaded from file