added taxonomy custom archive template
added debug function, debug constant, improved comments & refactorization