Added main file, put in structs and functions to create threads in future