Code update to reduce timing error.

There is no RTC on the Arduino so delay() has been adjust to get it as close as possible. Fix to come in #6 at a later date and to be rolled into Version 2.