Comments

Added comments and reorganized variables to be more readable