Made a few other things while im still stick

Modified some of the files to try and make decleration in line with
function, but can't malloc in a pthread xD haha... so still stuck