Fix spacing in output
Fix segfault and remove code that doesn't work