Fix notes incorrectly being terminated

- Link current first note backwards to new first note
  when adding to linked list
- Store next note so that it isn't set to NULL in loop
Fix indentation in badargs
Merge branch 'master' of https://github.com/porglezomp/wav-synth