Added in writer logic and very basic html template