Added comments and made variables human readable