added method to ChestData and some work on readConfig