Added psm1 and separated functions to file
Updated