Added File I/O functionality. To save just type save