feat(core): implement file write and load

Signed-off-by: Johny Jose <johny@playlyfe.com>