cleaned up a bit and implement get/save chapter