Refactored render()

Refactored render(string) into html(string, options) and render(string).
Also added unit tests.