polymer/tma-core: bug fixes and add example how to use it