Saving commands into cvs file

With this changes, commands map will be persisted in csv files along with all the iteration details