started work on saving algorithm to hf5 file