Updates to code.

Fixed:
-Showing "th" or "nd" on the basis of input
-Fixed "Clear" button
auto