Put the stard/end adjustments back.  They are needed.  Also make start == 0 a special case.  I hope this fixes the real problem that phk and others were seeing.
Put the stard/end adjustments back.  They are needed.  Also make start
== 0 a special case.  I hope this fixes the real problem that phk and
others were seeing.

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase