Addressed FoundBugs and cleaned up warnings throughout front end