Fixed warnings several and a scanner leak (added supresswarnings)