Added article details template.
Refactor and code clean-up.