- minor adoption

Just added a few argument type hints and missed methods like flatMap, append. And used 4 space-tabs