finished user input and main c files with headers