Added some stuff, I guess.(I forgot :/)
Basically got the whole thing working, except the fundimental bugs.