Fixes to include generation of units meta data and moved the meta data
to activity instead of sensor