added Config Class
adapted for use with arduino, managed pause and resume from save point