modularize tcs
Merge branch 'master' into gh-pages