added findbugs code inspection and fixed all bugs found