fix popen invocation parameters and some cleanups
docs + stat() yml
Merge remote-tracking branch 'upstream/master'