Decode function is completely operational now. This project is now functional and ready for public use (by my standards). That said, some code cleanup and refactoring would go a long way.