Clean up templates and use inline CSS

Closes #2