still 2 errors, but pushing anyway so you can integrate with my changes.
fixed a bug that was setting everything to 0 because my(val) stupid mistake