Refactoring, save state (JSON data storage), template testing