Fix Issue#17:  Added topicAttrName parameter, added compile time checks,
made topic parameter optional