Started implementing load/save functionality. There are still some issues.