open and saving working, editing working

- added editing of existing lines with readline when you hit the enter key