Refactor frame generator
Add Boost dependency for the c++ template lib
Fix comment
Merge branch 'generator_state' into dev