Refactored Helper/Model to concentrate methods in helper. prepared structure for importing in model. validation for proper data nesting.