Cleanup code and commented everything.