Fixed many bugs, now initializes properly but still doesn't decode for some reason.