Refactored the code into helpful functions, still need to write tests
Refactored the code into helpful functions, still need to write tests

numba/numba,cpcloud/numba,cpcloud/numba,numba/numba,numba/numba,numba/numba,cpcloud/numba,numba/numba,cpcloud/numba,cpcloud/numba