Bug fixing: strings in tableau output and other improvements

- Improvements based on pylint analysis
- Formatting strings for tableau