Feature/el constructor attrs

@sushantbs - can we merge this branch? Is it tested? Though our charts are not using this feature, we do have good code organisation here.