Added widget directive inheritance. PiCalc widget is functional.