add templatetags and some improvements on coding style
Merge pull request #5 from calazans10/feature/best_practices

add templatetags and some improvements on coding style