added logo and implemented new approach to the template parsing.