Cleaned up FoundBugs and warnings throughout front end and test classes