Decode works! Also added test and removed old sum/e stuff