added tests for the xstim_logger
moved save and loading functionalities out
added saving and loading (moved from logger class)
added save and load code
fixed bugs, added save/load
made persistant
fixed bug
included a few more tests...