Implemented interpolator and fixed some things that were wrong with it