implemented lots of crap
wrote some more stuff, started threading stuff