use components instead of lib in example.  minor clean-up