fixed bugs in opening a saving a file

fixed bugs with saving a file, opening a file and added feature to show
the current working file