minor refactoring for updating area
correct refactoring to make sure it still works
added select and set commands
Merge pull request #5 from cymantic/master

set and select commands implemented