code review, refactor and clean up how fields are displayed

Reviewed and did some minor refactoring to the functions that display/render the fields so that they are easier to read and maintain. Also added some missing escaping and made sure the code is up to standards.

ref #25
examples: add multi_select and taxonomy_checkbox fields

ref #44