Update gemamod_opensource.lua

Cleaned up some code