fixed some typos, fixed crash when template directory doesn't exist, converted site traffic to templates