Cleaned up and commented
Cleaned up and commented