moved helper lua functions to a file of their own.  might do the same with initial conditions soon.  also fixed Roe 2D compiler crash by MANUALLY unrolling the loop (the pragma unroll was still crashing the build).