Fixed bug.
Improved formatting.
Fixed clear bug.