Cleaning up functions and fixing one error
Checkout Completed and Search Orders

As well as a few bug fixes from Jared