Refactor battfs_init in 2 separate functions; add some docs.