Add is_single check
Tidy code, better HTML generation
Versioning