Added support for own templates.
Few long lines shortened.
Fixed urllib bug.