Add DEBUG variable that can specify to create a debugging build
Update formatting
Add -Werror for DEBUG builds