Added saving

Studies can correctly save and retrieve their state upon creation.