Added LineFormatter

Added LineFormatter, does all the formatting and inserting of the
strings into the document