Fixed Findbugs Unread fields erros. Removed the useless fields.
Fixed some dead stores that Findbugs complained about.