added stop/close
switch to temp over temporary
in progress commit.
added lots of test stuff, debugging. and it runs.