Added findbugs support and fixed reported issues