Somehow the Makefile modified itself.
Fixed indentation
Added some comments, removed unused or inefficient code
Removed superfluous escape sequences
Fixed comparison between size_t and signed integer when using string::find
Commented and improved on formatText
Renamed return var in formatText
Clarified update function
Added some comments for save()