call generated properly

just need to refactor a little if it doesn't take too long
realloc working
refactored

added helper function for adding new file to the gcc_command