added tutorial and categorie editing. Code updated for pep8 and added template