Made global variables and comments, decided on the steps of the program