Added default css style to template. Bug fixes.