Used std::shared_ptr to cleanup code

Used std::shared_ptr to cleanup code

LafsFormatter could be cleaned up using a shared_ptr upon code-review.
Changes have been made accordingly.

Jeremy Wildsmith