Messed with some formatting of the printing of our Sast stuff; added function to check if id used for function was already used for a variable; fixed collect_pat_vars function