Added Newlines. Warnings

The script used to add newlines is toolkit/add-nl.py.
Fixed elf warnings
Changed some things around