Adding function: getParametersForEncoding.

This new function does all of the preprocessing steps to make sure the necessary parameters have been found in prep for encoding messages real-time. The idea is to do as much preprocessing as possible in order to reduce the complexity of encoding messages.