Added main, changed some details

added the main
Moved SimpleDateFormat inside getClockTime to be thread-safe
Added a Boolean to figure out whether or not a thread was stopped.
Implementing Runnable doesn't allow us to use Thread.isInterrupted().