Decode mostly works now

Finished connecting decode