Refactored a little, going through the principle of Computer Science rules. I also added my text file where I made notes for the refactoring.