adds ruby erb to better errors
refactors errors controller
fixes issue with the publishing date