Several bug fixes and more commands. Added more features to sample app.