cleaned up rig_utils

realized I had committed a broken version of the file while on vacation