Remove unneeded .keep file
make local fonction private and add some require() when a public function make some assumptions
Use map instead of flatMap (function application is also wrapped in a Try)