Added more functions

Actually i changed a lot of things that i dont remember... lol