Added FindBugs to the pom file and resolved some bugs/issues.