Removed the use of markdown and extracted templates in separate file

Also added an end of line at the end of a one of the files.