Fixes minor haml style guide offense
Refactors clear button

- Removes redundant element lookups.
- Adds checks for if reset was called before initialization and throws
error if they weren’t.
- Adds additional code comments.
- Updates class names to be more descriptive (“clear” instead of
“close”).