ENH: added stop time to state file
added bufsize as option to Popen