Kind of finished the coin class

Added some functions to coin class to save it to a file, etc. The class
might still need some polishing, and probably has a lot of errors, but
it more or less does what it should.