some corrections, implicits added to replace applyToNote trait
Testcase added