Change main templates function

Added templates for archives, authors, categories, tags, fix single post
template option