(Almost) every function now returns an integer fo correct run or not, error validation for input, simpler functions in the main, correction of the gengetopt file, add some options that were still in the files and maybe some other minor things I am missing XD