added author information and fixed small off-by-one bug

--HG--
branch : trunk
2 files changed