ECDR-56: Updated metadata setting logic.

Also fixed some grammer and spelling errors.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/di2e/ecdr/16)
<!-- Reviewable:end -->