Improve themes and examples handling

Closes #4