fix spacing

dedented entire file.

The unnecessary indentation was messing up the code environments.
more explicit string formatting

updated code to better coding style.