rework processIn/processOut to only run at the correct times and bind the this context
Merge pull request #15 from nlf/process_fixes

rework processIn/processOut to only run at the correct times and bind the model context