Added tools/reg.py and tools/get.py for various functions (moved outside of tools/functions.py)