Fix whitespace, indentation and remove a debug puts.