Created all functions specified on the main document and created the main menu to use the simulator