updated sample apps

Cleaned up and tested.