Replaced the string formatting methods, updated the code comments.