replace log() with normal print; fix whitespace (tab to spaces)