Full decode implementation finished- tests incoming.