Fixed error in clearLine
Added commented out timing code.
The example now avarage n samples
Cleaned up the code.