Added a menu. Seperated functions into different files. Added a function to get user input.