Revert "Encoder Code Tested and Perfected"

This reverts commit b4d68adf9a45c467e1b5acfea0c319a4f3222fe4.