Added binary file and main function.