Cleaned up the code and made it more readable