Added some docstring and a string formatting fix