Timer and errors

Timer added.
Little errors corrected.