Save for text and  images

I added save for both images and text. There is a known bug whereby the image, if saved on Debian Linux as a JPG, produces only a black image. Tested with .png and that works. I will continue to try to determine why the .jpg will not save correctly. I also included basic tests for the saves and added the junit and hamcrest jars to lib. I also deleted the build and doc folders and added them to .gitignore.