Fixed bug in router
Added missing new lines at end of file on server