added some functionality to simple text

no every time the save button is hit the text from the text editor and
the file path is sent to saveScirpt.php. there was also so reworking of
the Lib folder