Helper methods

contentType and header-methods added
streamlined the run-method and its sub-methods