seperate link list into .c and .h files, also seperate main func to another file