Merge pull request #5 from danakj/master

A bunch of changes
Error checking and correction for invalid refresh interval and process index.