refactored cache generation into module
Merge pull request #14 from ros-infrastructure/cache-gen-to-module

refactored cache generation into module