Added findbugs to core build. Removed all bugs found.