some optimizations for sha1 hashing on OTRData
formatting updates find src/ -name \*.java |xargs sed -i 's, *$,,'
as requested by HC
simplify implementation based on @eighthave recommendation